keep (someone's) sanity

Translations
сохранять (чей-то) здравый рассудок
She took a break from work to keep her sanity.
Она взяла перерыв в работе, чтобы сохранить здравый рассудок.
Definitions
To help someone maintain their mental health and emotional stability, especially during stressful or challenging situations.